﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="KullaniciAyarlari.aspx.cs" Inherits="Cloud.Cloud.KullaniciAyarlari" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
            #WallpaperList 
            {
                height:253px;
                overflow-y:scroll;
                border:1px solid #C0C0C0;
                padding:5px;
            }
            
            #WallpaperList table tr td
            {
                padding:0;
                margin:0;
            }
            
            #WallpaperList table tr td img 
            {
                padding:2px;
                cursor:pointer;
                border:1px solid #006699;
            }
                        
            #WallpaperList table tr td img:hover
            {
                border:1px solid #C1C1C1;
            }    
    </style>
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="BodyContent" runat="server">
    <table class="Forms" width="710px">
        <tr>
            <th colspan="4">Kullanıcı Ayarları</th>
        </tr>
        <tr>
            <td class="Zorunlu">Adınız</td>
            <td>
                <net:Text runat="server" ID="_adi" Validate="true" ValidationName="Adınız" />
            </td>
            <td class="Zorunlu">Soyadınız</td>
            <td>
                <net:Text runat="server" ID="_soyadi" Validate="true" ValidationName="Soyadınız" />
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <div id="WallpaperList">
                    <asp:Literal runat="server" ID="_wallpaperList" />
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="2" class="Buttons">
                <net:Button runat="server" Text="Kaydet" Validation="true" Islem="Kaydet" />
            </td>
        </tr>
    </table>
    <script type="text/javascript">
        var selectedWallpaper = "";

        function SetWallpaper(wallpaper) {
            selectedWallpaper = wallpaper;
            Library.Ajax.WebMethod.Create("KullaniciAyarlari.aspx?islem=SaveWallpaper&Wallpaper=" + wallpaper, "ChangeBackground()");
        }

        function ChangeBackground() {
            document.getElementById('ctl00__kullaniciAyarWallpaper').value = selectedWallpaper;
            ChangeWallpaper();
        }
    </script>
</asp:Content>
